Platform Explorer / Nuxeo Platform 2023.12

Component org.nuxeo.runtime.mongodb.MongoDBComponent

Aliases

  • org.nuxeo.ecm.core.mongodb.MongoDBComponent
  • org.nuxeo.mongodb.core.MongoDBComponent

Resolution Order

818
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Start Order

764 (Declared Start Order: 40)
The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.

Implementation

Class: org.nuxeo.runtime.mongodb.MongoDBComponent

Services

Extension Points

XML Source

<?xml version='1.0' encoding='UTF-8'?>
<component name="org.nuxeo.runtime.mongodb.MongoDBComponent">

  <alias>org.nuxeo.mongodb.core.MongoDBComponent</alias>
  <alias>org.nuxeo.ecm.core.mongodb.MongoDBComponent</alias>

  <implementation class="org.nuxeo.runtime.mongodb.MongoDBComponent"/>

  <service>
    <provide interface="org.nuxeo.runtime.mongodb.MongoDBConnectionService"/>
  </service>

  <extension-point name="connection">
    <documentation>
      Extension point used to configure access to a MongoDB server or cluster. The service will return the 'default'
      access if the asked one hasn't been contributed.

      This sets up a MongoClient; server is mandatory.
      <code>
        <connection>
          <server>mongodb://bob:pass@localhost:27017,otherhost:27018/mydb?replicaSet=test;connectTimeoutMS=300000</server>
          <dbname>mydb</dbname>
          <ssl>true</ssl>
          <trustStorePath>/path/to/cacerts.jks</trustStorePath>
          <trustStorePassword>********</trustStorePassword>
          <trustStoreType>jks</trustStoreType>
          <keyStorePath>/path/to/keystore.jks</keyStorePath>
          <keyStorePassword>********</keyStorePassword>
          <keyStoreType>jks</keyStoreType>
        </connection>
      </code>
      See http://docs.mongodb.org/manual/reference/connection-string/ for the mongodb:// URI syntax.
    </documentation>

    <object class="org.nuxeo.runtime.mongodb.MongoDBConnectionConfig"/>
  </extension-point>

</component>